// =====================================================================================
//  Copyright (C) 2024 by Jiaxing Shao. All rights reserved

//  文 件 名:  IndexBuffer.h
//  作    者:  Jiaxing Shao, 980853650@qq.com
//  创建时间：  2024-08-01 21:58
//  描    述:  
// =====================================================================================
#pragma once

class IndexBuffer {
public:
    IndexBuffer(const unsigned int *data, unsigned int count);
    ~IndexBuffer();

public:
    void         bind() const;
    void         unbind() const;
    unsigned int getCount() const
    {
        return m_indexCount;
    }

private:
    unsigned int m_rendererId;
    unsigned int m_indexCount;
};
